<extend name="Public/base" />
<block name="content">
<style type="text/css">
.popover{ word-break:break-all; }
</style>
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		<a class="confirm btn btn-warning ajax-post" url="{:U('clear')}" target-form="ids">清 空</a>
		<button class="confirm btn btn-danger ajax-post " url="{:U('remove')}" target-form="ids">删 除</button>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
						<table class="table table-bordered table-striped with-check">
							<thead>
								<tr>
									<th><input type="checkbox" /></th>
									<th>编号</th>
									<th>行为名称</th>
									<th>触发人</th>
									<th>触发时间</th>
									<th>触发ip</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<notempty name="_list">
									<volist name="_list" id="vo">
										<tr>
											<td class="taskStatus"><input type="checkbox" value="{$vo.id}" name="ids[]" class="ids"/></td>
											<td class="taskStatus">{$vo.id}</td>
											<td class="taskStatus">{$vo['action_id']|getActionTitle}</td>
											<td class="taskStatus">{:getUserName($vo['user_id'])}</td>
											<td class="taskStatus">{$vo.create_time|time_format}</td>
											<td class="taskStatus">{:long2ip($vo['action_ip'])}</td>
											<td class="taskStatus">
												<a data-original-title="用户日志备注信息" href="#" data-toggle="popover" data-placement="left" data-content="{$vo.remark} | {$vo.model} | ID:{$vo.record_id}" class="a-title" title=""><i class="icon-edit"></i> 详细</a>　
												<a href="{:U('Action/remove?ids='.$vo['id'])}" class="confirm ajax-get"><i class="icon-remove"></i> 删除</a>
											</td>
										</tr>
									</volist>
								<else/>
									<tr>
										<td colspan="10" class="taskStatus"> Oh~亲爱滴,暂时还没有内容! </td>
									</tr>
								</notempty>
							</tbody>
						</table>
						<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
							{$_page}
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
//新增跳转页面
$('#add').click(function(){
	window.location.href="{:U('Action/add')}";
});
/**
 * @todo 鼠标移动滑出遮罩层,使用demo
 */
$(function (){
	$(".a-title").popover();
});
//导航高亮
highlight_subnav("{:U('Action/actionLog')}");
</script>
</block>